<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddRiskExplain2ToCruiseCheckRiskProblem extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('cruise_check_risk_problem', function (Blueprint $table) {
            $table->string('riskExplain2', 255)->default('')->comment('二级说明')->after('riskName2');
            $table->tinyInteger('status')->default(1)->comment('0隐藏 1展示')->after('riskName1');
            $table->string('otherType', 16)->default('')->comment('string字符串 integer整数')->after('riskName1');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('cruise_check_risk_problem', function (Blueprint $table) {
            $table->dropColumn('riskExplain2');
            $table->dropColumn('status');
            $table->dropColumn('otherType');
        });
    }
}
